﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="MylyUpdatePwd.aspx.cs" Inherits="MyLy_MylyTransferPwd" %>

<%@ Register src="../Controls/Head.ascx" tagname="Head" tagprefix="uc1" %>

<%@ Register src="../Controls/Foot.ascx" tagname="Foot" tagprefix="uc2" %>

<%@ Register src="../Controls/MylyLeft2.ascx" tagname="MylyLeft" tagprefix="uc3" %>

<%@ Register src="../Controls/MylyRight.ascx" tagname="MylyRight" tagprefix="uc4" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>立言咨询平台-更改用户密码</title>
<link href="../css/website1.css" rel="stylesheet" type="text/css" />
<link href="../css/Myly.css" rel="stylesheet" type="text/css" />
<link href="../css/linkStyle.css" rel="stylesheet" type="text/css" />
<link href="../Scripts/plugins/jquery.alerts/jquery.alerts.css" rel="stylesheet" type="text/css" />
        <style type="text/css">
        /* form中显示文字的label */
        .slabel
        {
        	width:142px;
        	display: -moz-inline-box;
        	line-height: 1.8;
        	display: inline-block;
        	text-align:right;
        }
        /* 出错样式 */
        input.error, textarea.error
        {
        	border: solid 1px #CD0A0A;
        }
        label.error
        {
        	color:#CD0A0A;
        	margin-left:5px;
        }
        /* 深红色文字 */
        .textred
        {
        	color:#CD0A0A;
        }	
        </style>
<script src="../Scripts/jquery-1.2.6.min.js" type="text/javascript"></script>  
<script src="../Scripts/jquery.validate.js" type="text/javascript"></script>
<script src="../Scripts/plugins/jquery.alerts/jquery.alerts.js" type="text/javascript"></script>
<script src="../Scripts/messages_cn.js" type="text/javascript"></script>    
<script type="text/javascript">
        $(function() { 
           $("#commentForm").validate(
           {
               errorClass: "error",
               ignoreTitle: true,
              rules: {
              Txt_OldPassword: {     
                    required: true    
                },    
              Txt_NewPassword: {     
                required: true       
                },   
              Txt_SurePassword: {     
                    required: true,
                    equalTo: "#Txt_NewPassword"     
                }   
               },
               messages: {
                    Txt_OldPassword: {required: "请填写密码"}, 
                    Txt_NewPassword: { required: "请填写密码"},   
                    Txt_SurePassword: {required: "请填写确认密码",equalTo: "两次密码输入不相同"}   
                }
           });
        });        
    
    </script>
    

</head>
<body>
    <form id="commentForm" runat="server">
    <div id="big">
    <uc1:Head ID="Head1" runat="server" />
    <div id="main">
           <div class="kong1"></div>
           <uc3:MylyLeft ID="MylyLeft1" runat="server" />
           <div class="kong1"></div>
           <div id="middle">
                 <div id="m1"><div id="m11"><a href="Mylyindex.aspx">&nbsp; &nbsp;我的立言平台</a><a href="MylyUpdatePwd.aspx">&nbsp; &nbsp;>>密码修改</a></div></div>
                 <div class="xiankong"></div>
                 <div id="m2"><span>原注册密码</span>：<asp:TextBox ID="Txt_OldPassword" runat="server" BorderWidth="1px" 
                         TextMode="Password" Width="200px"></asp:TextBox>
                 </div>
                 <div class="xian"></div>
                 <div class="xiankong"></div>
                 <div class="m3"><span>新注册密码</span>：<asp:TextBox ID="Txt_NewPassword" runat="server" BorderWidth="1px" 
                         TextMode="Password" Width="200px"></asp:TextBox>
                 </div>
                 <div class="xian"></div>
                 <div class="xiankong"></div>
                 <div id="m4"><span>确认新密码</span>：<asp:TextBox ID="Txt_SurePassword" runat="server" BorderWidth="1px" 
                         TextMode="Password" Width="200px"></asp:TextBox>
                 </div>
                 <div class="xian"></div>
                 <div class="xiankong"></div>
                 <div class="m5">
                     <asp:ImageButton ID="ImgBtnUpdate" runat="server" 
                         ImageUrl="~/Images/MylyImg/genggai.jpg" onclick="ImgBtnUpdate_Click1" />
                 </div>
              <%--   错误信息--%>
                 <div style="height:25px; text-align:left;">
                           &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                           <asp:Label ID="Lbl_ErrorInfo" runat="server" Font-Bold="True" ForeColor="#FF3300" 
                               Text=""></asp:Label>
                </div>
           </div>
         
           <div class="kong1"></div>
          
           <uc4:MylyRight ID="MylyRight1" runat="server" />
    </div>
    <uc2:Foot ID="Foot1" runat="server" /> 
    </div>
    </form>
</body>
</html>
